package com.clinicaltrials.utils;

/**
 * <p>Title: 支付配置类</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 广州市概点信息科技有限公司</p>
 * @author laiwenjin
 * @version 1.0
 * @email 960799328@qq.com
 * @date 2020-04-30 11:03
 */
import java.io.FileWriter;
import java.io.IOException;


public class AlipayConfig {
	
	
	// app应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号2021001159695213
    public static String appId ="2019093067962390";
	
    // 网站应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号2021001159695213
    public static String appWapid ="2021001159695213";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key ="MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQClrJ5X5faZwXSbqtUBXF5gZ4Yg0Po3RxFt2StxWE4g/sDClx8DnAdAcdXccJS3NS5lXJJIeC8H0DA0IMQLe9Wmnja3k+QVfacH5rjNqecz6vy4PDcKd8KW3zbkIVUPaT/7DWfGT1Xywm8bM1kletLXRWYwveo7TQq0dKkswR2IZ7BfLycK4Igpet8g6eRt05HYVVwWgW+VXK2nfpYx9CWAGvpdjrmvDTCyAU851HvWSN/yAaepqFW8Z2W5T7aQLvbO4Mm7beJDsCxaE04EahnT3/i8eXQvwDEQEgRrilEIdR3CKZwJ7jPA7OXPycTOiG0d8sxKc/U8qlW4BLY4VKLdAgMBAAECggEAEyOc60Sat2p84RrcHpsgH/z1psbdkRM5tTn4ZdCwvekQNaqln5If2FcOQLgUxhFzuav3Dj4sGLf5SZxbaYQ1y1jNs2l3WPA6IpSJ1uCA4COObG4wYZoyNaG1wqcDH5OmG4eR7HvvzuqdUUQeUVEeGFZhFtJpw84DpZMwlAX/Nmmr6S0a+s11nVsZQ3pjUyYki6y04IyuxrB8kk8O8JqTD/9VW3y6S8xgRyE9CiarxjXS2GdFLL8/2kbsLryPxNg4Y7tloCFw56mgU9MhSLaLXFmtSvzC/ixhXggWqyP7pt4WA0z0dRtDK9TdPyez8mZHx6iX6PQHZftZtf5d4S6SQQKBgQDxxIDaWDaH2Ack5nseMAFLiOrqP2G2lfQLHdHHhXglBzAYALMC3CFX345wdAFtUnLslMLpWEQylKs/JKUC8PhkKz1L/Muc8KKxd97+BAV+VG8xdiWmpcp30drYEW6wqq6C7RISyVv+Di6gnmJwFchm4I2fjTxT/C0vlH+T0Gm1EQKBgQCvbV7d9nHbbyZXggbwy1Bf4RMeyU8mz3yKxiVGhPB3Rc/091Bx3GZq2CVMApi7PKwn1a8V03TSHvN8yD2aYi4/MJRUrXRZ6cYrEbJMBFI15IHMbPlaaDOeCxMSI5Q2IVOcK/433JhJaHz5argBgPwAw58CjjgOvSIIXxiqc6thDQKBgGcSQ2zS1syrSMBukmaYSLUPNjePtfTFkTl8CQdq24HNwq84/RhnCMARywQeMM2OrPg3o7EftFNsFmXhFYhfe0YZORTAPX43COVoGWVqCX2GObF4kSyu2dajXQ1owSwIWEXxFBd2SQXSvgYz//uRDdLuQPKYn/OeOxVh1dIKtEZBAoGANOKG3+lEp79ZUrYrO3o/b7gdmIFdsDiKthdH83tuNrbAG3xXLwwfgARLMh/yRTfkOloL30uRAys7ghmnoJwKjxgpD2H/GoAEMsWx94Kx+fc6PhN4FI4nSXTTOfup2auwVftZNyP0cOTkEBjhAesNjXlrvUx8j8zqrpVkjTYzqx0CgYEAvWmJ4yz0VHjJPs291XPdjnQJVvWmrAhavhXKaHOPsNjbEnk1aFQ6GTeXP7YU1aO0iSrrvVqNgZiVlwbBKreI8nXZ8PoyWz3TD+2+INKp7gqQD1Y4DNHnYg9uDd8cNqfoMMXUA+9NTrSbhnuJGBTVDT15tV5VLSYAUNrsKBlTt+8=";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key= "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlloF5oreDhDlDMgx7Z1z8rtTdgl3x81UryurroamPkUIqktqsebL6UDfut9FNyKAt/AxU+wBDv7qtSwl0O7ZJhmzJkWj2nxEI8zThdoYl8MenwO69a58T+ibwba7CV1WjqTEbCG3Zt/gQ+eek42I/U7KL7HTxnbUspwym0naPiDSYrEiiCVjx882BgAH6chENx0//FtKqsp66hhtbk3pTHrGwFJIiSk7r/8VB/XMa9qVd1b6UPabZfgdWPPYcK089gnZSBllHVpEGRa/PtkGjadwJgDtdzLdzqXblF6bkOghjcLc7aBcHLlsQi3vyeY0nk0UbTKibLE3PnM02jamxQIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://kp8hhe.natappfree.cc/notify_url";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://kp8hhe.natappfree.cc/return_url";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝网关https://openapi.alipaydev.com/gateway.do
    public static String gatewayUrl = "https://openapi.alipay.com/gateway.do";

    // 支付宝网关
    public static String log_path = "C:\\";
    
    // 合作身份者ID
    public static String pid = "2088631323036742";
    
    //账户邮箱
    public static String seller_id = "506608785@qq.com";
    
    //标题
    public static String subject = "项目发布-积分充值";

    //订单允许的最晚付款时间
    public static String timeout_express = "30m";
    


    /**
     * 写日志，方便测试（看网站需求，也可以改成把记录存入数据库）
     * @param sWord 要写入日志里的文本内容
     */
    public static void logResult(String sWord) {
        FileWriter writer = null;
        try {
            writer = new FileWriter(log_path + "alipay_log_" + System.currentTimeMillis()+".txt");
            writer.write(sWord);
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            if (writer != null) {
                try {
                    writer.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}


